package com.yunhe.marketing.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;

import java.util.Objects;

/**
 * @Author: DongWenYu
 * @Date: 2021/3/25 14:15
 */
@ApiModel(value = "EnterpriseUploadAQC", description = "爱企查对应Excel的实体类")
public class EnterpriseUploadAQC extends BaseRowModel {

    @ApiModelProperty(value = "企业ID")
    @Id
    @ExcelIgnore
    private Long id;
    @ExcelProperty(value = "公司名称", index = 0)
    private String enterpriseName;
    @ExcelProperty(value = "法定代表人", index = 1)
    private String legalRepresentative;
    @ExcelProperty(value = "注册资本", index = 2)
    private String registeredCapital;
    @ExcelProperty(value = "成立日期", index = 3)
    private String establishDate;
    @ExcelProperty(value = "经营状态", index = 4)
    private String operationStatusTitle;
    @ExcelProperty(value = "所属省份", index = 5)
    private String provinceTitle;
    @ExcelProperty(value = "所属市区", index = 6)
    private String cityTitle;
    @ExcelProperty(value = "所属区县", index = 7)
    private String districtTitle;
    @ExcelProperty(value = "公司类型", index = 8)
    private String enterpriseTypeTitle;
    @ExcelProperty(value = "工商注册号" , index = 11)
    private String license;
    @ExcelProperty(value = "联系电话", index = 13)
    private String contactNumber;
    @ExcelProperty(value = "所属行业", index = 14)
    private String industryCategoryTitle;
    @ExcelProperty(value = "地址", index = 15)
    private String registerAddress;
    @ExcelProperty(value = "网址", index = 16)
    private String website;
    @ExcelProperty(value = "邮箱", index = 17)
    private String email;
    @ExcelProperty(value = "经营范围", index = 18)
    private String businessNature;
    @ExcelProperty(value = "匹配状态" ,index = 19)
    private String status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getEnterpriseName() {
        return enterpriseName;
    }

    public void setEnterpriseName(String enterpriseName) {
        this.enterpriseName = enterpriseName;
    }

    public String getRegisteredCapital() {
        return registeredCapital;
    }

    public void setRegisteredCapital(String registeredCapital) {
        this.registeredCapital = registeredCapital;
    }

    public String getEstablishDate() {
        return establishDate;
    }

    public void setEstablishDate(String establishDate) {
        this.establishDate = establishDate;
    }

    public String getOperationStatusTitle() {
        return operationStatusTitle;
    }

    public void setOperationStatusTitle(String operationStatusTitle) {
        this.operationStatusTitle = operationStatusTitle;
    }

    public String getProvinceTitle() {
        return provinceTitle;
    }

    public void setProvinceTitle(String provinceTitle) {
        this.provinceTitle = provinceTitle;
    }

    public String getCityTitle() {
        return cityTitle;
    }

    public void setCityTitle(String cityTitle) {
        this.cityTitle = cityTitle;
    }

    public String getDistrictTitle() {
        return districtTitle;
    }

    public void setDistrictTitle(String districtTitle) {
        this.districtTitle = districtTitle;
    }

    public String getEnterpriseTypeTitle() {
        return enterpriseTypeTitle;
    }

    public void setEnterpriseTypeTitle(String enterpriseTypeTitle) {
        this.enterpriseTypeTitle = enterpriseTypeTitle;
    }

    public String getLicense() {
        return license;
    }

    public void setLicense(String license) {
        this.license = license;
    }

    public String getContactNumber() {
        return contactNumber;
    }

    public void setContactNumber(String contactNumber) {
        this.contactNumber = contactNumber;
    }

    public String getIndustryCategoryTitle() {
        return industryCategoryTitle;
    }

    public void setIndustryCategoryTitle(String industryCategoryTitle) {
        this.industryCategoryTitle = industryCategoryTitle;
    }

    public String getRegisterAddress() {
        return registerAddress;
    }

    public void setRegisterAddress(String registerAddress) {
        this.registerAddress = registerAddress;
    }

    public String getWebsite() {
        return website;
    }

    public void setWebsite(String website) {
        this.website = website;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getBusinessNature() {
        return businessNature;
    }

    public void setBusinessNature(String businessNature) {
        this.businessNature = businessNature;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getLegalRepresentative() {
        return legalRepresentative;
    }

    public void setLegalRepresentative(String legalRepresentative) {
        this.legalRepresentative = legalRepresentative;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        EnterpriseUploadAQC that = (EnterpriseUploadAQC) o;
        return Objects.equals(license, that.license);
    }

    @Override
    public int hashCode() {
        return Objects.hash(license);
    }
}
